package dk.itu.mmad.fragmentlifecycle;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class MainFragment extends Fragment {

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onActivityCreated.");
	}

	@Override
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onAttach.");
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onCreate.");
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onCreateView.");
		
		return inflater.inflate(R.layout.fragment, container);
	}

	@Override
	public void onDestroy() {
		super.onDestroy();
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onDestroy.");
	}

	@Override
	public void onDestroyView() {
		super.onDestroyView();
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onDestroyView.");
	}

	@Override
	public void onDetach() {
		super.onDetach();
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onDetach.");
	}

	@Override
	public void onPause() {
		super.onPause();
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onPause.");
	}

	@Override
	public void onResume() {
		super.onResume();
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onResume.");
	}

	@Override
	public void onStart() {
		super.onStart();
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onStart.");
	}

	@Override
	public void onStop() {
		super.onStop();
		Log.i(MainActivity.TAG_NAME, "In MainFragment.onStop.");
	}
	
}
